<form class="form-horizontal">
  {% for column in table['columns'] -%}
  {% if column['form'] != '' -%}
  <div class="form-group">
      <label class="col-sm-2 control-label">{{column.alias}}:</label>
      <div class="col-sm-10">
          {% if column['form'] == 'text' -%}
          <input type="text" class="form-control" placeholder="" id="{{column['alias']}}">
          {% elif column['form'] == 'password' -%}
          <input type="password" class="form-control" placeholder="" id="{{column['alias']}}">
          {% elif column['form'] == 'number' -%}
          <input type="number" class="form-control" placeholder="" id="{{column['alias']}}">
          {% elif column['form'] == 'textarea' -%}
          <textarea class="form-control" placeholder="" id="{{column['alias']}}"></textarea>
          {% elif column['form'] == 'select' -%}
          <select class="form-control" placeholder="" id="{{column['alias']}}">
              {% for d in column['data'] -%}
              <option value="{{d['key']}}">{{d['val']}}</option>
              {% endfor %}
          </select>
          {%- endif %}
      </div>
  </div>
  {% endif %}
  {%- endfor %}
</form>